package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;

import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public interface ApArticleMapper extends BaseMapper<ApArticle> {
    /**
     *  加载首页
     * @param dto
     * @param type 1：加载更多 2：加载最新
     * @return
     */
    public List<ApArticle> loadArticleList(@Param("dto")ArticleHomeDto dto, @Param("type")Short type);
}
